import request from '@/utils/request'

// 查询特设证书管理列表
export function listSpecialCertificate(query) {
  return request({
    url: '/training/specialCertificate/list',
    method: 'get',
    params: query
  })
}

// 查询特设证书管理详细
export function getSpecialCertificate(specialCertificateId) {
  return request({
    url: '/training/specialCertificate/' + specialCertificateId,
    method: 'get'
  })
}

// 新增特设证书管理
export function addSpecialCertificate(data) {
  return request({
    url: '/training/specialCertificate',
    method: 'post',
    data: data
  })
}

// 修改特设证书管理
export function updateSpecialCertificate(data) {
  return request({
    url: '/training/specialCertificate',
    method: 'put',
    data: data
  })
}

// 删除特设证书管理
export function delSpecialCertificate(specialCertificateId) {
  return request({
    url: '/training/specialCertificate/' + specialCertificateId,
    method: 'delete'
  })
}


//列表
export function getSpecialList(query) {
  return request({
    url: '/training/specialCertificate/getSpecialList',
    method: 'get',
    params: query
  })
}